package com.ocom.common.request.web;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class AddConsTypeRequest {

    @JsonProperty("comId")
    @Min(1L)
    @NotNull(message = "comId 不能为空")
    private Long comId;
    @NotNull(message = "consType 不能为空")
    private Integer consType;
    @JsonProperty("consTypeName")
    @NotBlank(message = "consTypeName 不能为空")
    private String consTypeName;

    //{"consType":"651","consTypeName":"测打的","subAccountNo":1,"walletSerial":"1","withholdSerial":0,"comId":52}

    private Integer subAccountNo=0;
    private String walletSerial;
    private Integer withholdSerial;

}
